package restle

type AddArticle struct {
	UserId  int    `gorm:"user_id" json:"userId" binding:"required"`
	Title   string `gorm:"title" json:"title" binding:"required"`
	Counter string `gorm:"counter" json:"counter" binding:"required"`
}
type LikeArticle struct {
	UserId int `gorm:"user_id" json:"userId" binding:"required"`
	Id     int `gorm:"id" json:"id" binding:"required"`
}
type ArticleReview struct {
	UserId    int    `gorm:"user_id" json:"user_id" binding:"required"`       // 用户id
	ArticleId int    `gorm:"article_id" json:"article_id" binding:"required"` // 文章id
	Context   string `gorm:"context" json:"context" binding:"required"`       // 评论内容

}
type ArticleReviewfu struct {
	UserId    int    `gorm:"user_id" json:"user_id" binding:"required"`       // 用户id
	ArticleId int    `gorm:"article_id" json:"article_id" binding:"required"` // 文章id
	FatherId  int    `gorm:"father_id" json:"father_id" binding:"required"`   // 父级id
	Context   string `gorm:"context" json:"context" binding:"required"`       // 评论内容
}

type ArticleHistory struct {
	UserId    int `gorm:"user_id" json:"user_id" binding:"required"`
	ArticleId int `gorm:"article_id" json:"article_id" binding:"required"`
}
